/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-5      SummerGift   first version
 */

#ifndef __LORACONFIGEBT_H__
#define __LORACONFIGEBT_H__

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define M0_PIN    GET_PIN(E, 10)
#define M1_PIN    GET_PIN(E, 12)
#define LORA_MD0H() rt_pin_write(M0_PIN,PIN_HIGH)
#define LORA_MD0L() rt_pin_write(M0_PIN,PIN_LOW)
#define LORA_MD1H() rt_pin_write(M1_PIN,PIN_HIGH)
#define LORA_MD1L() rt_pin_write(M1_PIN,PIN_LOW)
extern void lora_tran_data(unsigned char*data, unsigned int len);


#endif /* __LORACONFIGEBT_H__ */

